
#ifndef _ENTECH_PORTS
#define _ENTECH_PORTS

#include <WPILib.h>

const UINT32 c_DriverLeftJoystick  = 1;
const UINT32 c_DriverRightJoystick = 2;

// PWM Motors
const UINT32 c_DriveLeftMotorPort  = 2;
const UINT32 c_DriveRightMotorPort = 1;

// Digital IO Ports
// Encoder A/B channels need to be set so they count positive when drive motors 
// are driving forward.  Otherwise autonomous driving will not work.
const UINT32 c_DriveLeftEncoderAport  = 3;
const UINT32 c_DriveLeftEncoderBport  = 4;
const UINT32 c_DriveRightEncoderAport = 1;
const UINT32 c_DriveRightEncoderBport = 2;
const UINT32 c_pressureSwitch         = 5;
const UINT32 c_leftClimberPositionSwitch  = 7;
const UINT32 c_rightClimberPositionSwitch = 6;
const UINT32 c_autonomousStartPosition1 = 12;
const UINT32 c_autonomousStartPosition2 = 13;
const UINT32 c_autonomousExitPath       = 14;

// Analog Channels
const UINT32 c_autonomousDelay  = 1;

// Relays
const UINT32 c_compressorRelay = 5;

// Pneumatic Solenoids
const UINT32 c_ShifterHighPort      = 1;
const UINT32 c_tilterChannel        = 2;
const UINT32 c_dumperKickChannel    = 3;
const UINT32 c_dumperArmUpChannel   = 4;
const UINT32 c_dumperArmDownChannel = 5;

// CAN Bus Identifiers
const UINT8 c_ClimberLeftMotorCANid  = 2;
const UINT8 c_ClimberRightMotorCANid = 3;

// Operator Control Buttons from EnhancedDigitalIO board
const UINT32 c_OperatorDumperKickPort     = 1;
const UINT32 c_OperatorDumperDumpPort     = 2;
const UINT32 c_OperatorTilter             = 3;
const UINT32 c_OperatorClimberDeadman     = 4;
const UINT32 c_OperatorLeftChainForward   = 5;
const UINT32 c_OperatorLeftChainBackward  = 6;
const UINT32 c_OperatorRightChainForward  = 7;
const UINT32 c_OperatorRightChainBackward = 8;

// Operator Control Buttons from the Joysticks
const UINT32 c_ForceDriveOnJoystick = 1;
const UINT32 c_ForceDriveOnButton   = 1;
const UINT32 c_ShiftHighJoystick    = 1;
const UINT32 c_ShiftHighButton      = 4;
const UINT32 c_ShiftLowJoystick     = 1;
const UINT32 c_ShiftLowButton       = 5;
const UINT32 c_ToggleDriveJoystick  = 1;
const UINT32 c_ToggleDrive          = 8;
#endif
